package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_ACLS_USER"
 *     
*/
public class CcpAclsUser implements Serializable {

    /** identifier field */
    private String cauGuid;

    /** nullable persistent field */
    private String unitCode;

    /** nullable persistent field */
    private String name;

    /** nullable persistent field */
    private String sex;

    /** nullable persistent field */
    private String nation;

    /** nullable persistent field */
    private String political;

    /** nullable persistent field */
    private String workDate;

    /** nullable persistent field */
    private String education;

    /** nullable persistent field */
    private String tecTitle;

    /** nullable persistent field */
    private String duty;

    /** nullable persistent field */
    private String email;

    /** nullable persistent field */
    private String birth;

    /** nullable persistent field */
    private String address;

    /** nullable persistent field */
    private String postcode;

    /** nullable persistent field */
    private String mobile;

    /** nullable persistent field */
    private String workUnit;

    /** nullable persistent field */
    private String depart;

    /** nullable persistent field */
    private String tel;

    /** nullable persistent field */
    private String userGuid;

    /** full constructor */
    public CcpAclsUser(String cauGuid, String unitCode, String name, String sex, String nation, String political, String workDate, String education, String tecTitle, String duty, String email, String birth, String address, String postcode, String mobile, String workUnit, String depart, String tel, String userGuid) {
        this.cauGuid = cauGuid;
        this.unitCode = unitCode;
        this.name = name;
        this.sex = sex;
        this.nation = nation;
        this.political = political;
        this.workDate = workDate;
        this.education = education;
        this.tecTitle = tecTitle;
        this.duty = duty;
        this.email = email;
        this.birth = birth;
        this.address = address;
        this.postcode = postcode;
        this.mobile = mobile;
        this.workUnit = workUnit;
        this.depart = depart;
        this.tel = tel;
        this.userGuid = userGuid;
    }

    /** default constructor */
    public CcpAclsUser() {
    }

    /** minimal constructor */
    public CcpAclsUser(String cauGuid) {
        this.cauGuid = cauGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CAU_GUID"
     *         
     */
    public String getCauGuid() {
        return this.cauGuid;
    }

    public void setCauGuid(String cauGuid) {
        this.cauGuid = cauGuid;
    }

    /** 
     *            @hibernate.property
     *             column="UNIT_CODE"
     *             length="32"
     *         
     */
    public String getUnitCode() {
        return this.unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode;
    }

    /** 
     *            @hibernate.property
     *             column="NAME"
     *             length="50"
     *         
     */
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /** 
     *            @hibernate.property
     *             column="SEX"
     *             length="2"
     *         
     */
    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    /** 
     *            @hibernate.property
     *             column="NATION"
     *             length="2"
     *         
     */
    public String getNation() {
        return this.nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    /** 
     *            @hibernate.property
     *             column="POLITICAL"
     *             length="2"
     *         
     */
    public String getPolitical() {
        return this.political;
    }

    public void setPolitical(String political) {
        this.political = political;
    }

    /** 
     *            @hibernate.property
     *             column="WORK_DATE"
     *             length="10"
     *         
     */
    public String getWorkDate() {
        return this.workDate;
    }

    public void setWorkDate(String workDate) {
        this.workDate = workDate;
    }

    /** 
     *            @hibernate.property
     *             column="EDUCATION"
     *             length="2"
     *         
     */
    public String getEducation() {
        return this.education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    /** 
     *            @hibernate.property
     *             column="TEC_TITLE"
     *             length="50"
     *         
     */
    public String getTecTitle() {
        return this.tecTitle;
    }

    public void setTecTitle(String tecTitle) {
        this.tecTitle = tecTitle;
    }

    /** 
     *            @hibernate.property
     *             column="DUTY"
     *             length="50"
     *         
     */
    public String getDuty() {
        return this.duty;
    }

    public void setDuty(String duty) {
        this.duty = duty;
    }

    /** 
     *            @hibernate.property
     *             column="Email"
     *             length="50"
     *         
     */
    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    /** 
     *            @hibernate.property
     *             column="BIRTH"
     *             length="10"
     *         
     */
    public String getBirth() {
        return this.birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    /** 
     *            @hibernate.property
     *             column="ADDRESS"
     *             length="100"
     *         
     */
    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    /** 
     *            @hibernate.property
     *             column="POSTCODE"
     *             length="10"
     *         
     */
    public String getPostcode() {
        return this.postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    /** 
     *            @hibernate.property
     *             column="MOBILE"
     *             length="15"
     *         
     */
    public String getMobile() {
        return this.mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /** 
     *            @hibernate.property
     *             column="WORK_UNIT"
     *             length="50"
     *         
     */
    public String getWorkUnit() {
        return this.workUnit;
    }

    public void setWorkUnit(String workUnit) {
        this.workUnit = workUnit;
    }

    /** 
     *            @hibernate.property
     *             column="DEPART"
     *             length="100"
     *         
     */
    public String getDepart() {
        return this.depart;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }

    /** 
     *            @hibernate.property
     *             column="TEL"
     *             length="15"
     *         
     */
    public String getTel() {
        return this.tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    /** 
     *            @hibernate.property
     *             column="USER_GUID"
     *             length="32"
     *         
     */
    public String getUserGuid() {
        return this.userGuid;
    }

    public void setUserGuid(String userGuid) {
        this.userGuid = userGuid;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cauGuid", getCauGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpAclsUser) ) return false;
        CcpAclsUser castOther = (CcpAclsUser) other;
        return new EqualsBuilder()
            .append(this.getCauGuid(), castOther.getCauGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCauGuid())
            .toHashCode();
    }

}
